package com.bjsxt.pojo;

import java.util.ArrayList;
import java.util.List;

public class ApplicationlogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApplicationlogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogidIsNull() {
            addCriterion("logid is null");
            return (Criteria) this;
        }

        public Criteria andLogidIsNotNull() {
            addCriterion("logid is not null");
            return (Criteria) this;
        }

        public Criteria andLogidEqualTo(Integer value) {
            addCriterion("logid =", value, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidNotEqualTo(Integer value) {
            addCriterion("logid <>", value, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidGreaterThan(Integer value) {
            addCriterion("logid >", value, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidGreaterThanOrEqualTo(Integer value) {
            addCriterion("logid >=", value, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidLessThan(Integer value) {
            addCriterion("logid <", value, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidLessThanOrEqualTo(Integer value) {
            addCriterion("logid <=", value, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidIn(List<Integer> values) {
            addCriterion("logid in", values, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidNotIn(List<Integer> values) {
            addCriterion("logid not in", values, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidBetween(Integer value1, Integer value2) {
            addCriterion("logid between", value1, value2, "logid");
            return (Criteria) this;
        }

        public Criteria andLogidNotBetween(Integer value1, Integer value2) {
            addCriterion("logid not between", value1, value2, "logid");
            return (Criteria) this;
        }

        public Criteria andDrugnameIsNull() {
            addCriterion("drugname is null");
            return (Criteria) this;
        }

        public Criteria andDrugnameIsNotNull() {
            addCriterion("drugname is not null");
            return (Criteria) this;
        }

        public Criteria andDrugnameEqualTo(String value) {
            addCriterion("drugname =", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotEqualTo(String value) {
            addCriterion("drugname <>", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameGreaterThan(String value) {
            addCriterion("drugname >", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameGreaterThanOrEqualTo(String value) {
            addCriterion("drugname >=", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameLessThan(String value) {
            addCriterion("drugname <", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameLessThanOrEqualTo(String value) {
            addCriterion("drugname <=", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameLike(String value) {
            addCriterion("drugname like", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotLike(String value) {
            addCriterion("drugname not like", value, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameIn(List<String> values) {
            addCriterion("drugname in", values, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotIn(List<String> values) {
            addCriterion("drugname not in", values, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameBetween(String value1, String value2) {
            addCriterion("drugname between", value1, value2, "drugname");
            return (Criteria) this;
        }

        public Criteria andDrugnameNotBetween(String value1, String value2) {
            addCriterion("drugname not between", value1, value2, "drugname");
            return (Criteria) this;
        }

        public Criteria andProvideridIsNull() {
            addCriterion("providerid is null");
            return (Criteria) this;
        }

        public Criteria andProvideridIsNotNull() {
            addCriterion("providerid is not null");
            return (Criteria) this;
        }

        public Criteria andProvideridEqualTo(String value) {
            addCriterion("providerid =", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotEqualTo(String value) {
            addCriterion("providerid <>", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridGreaterThan(String value) {
            addCriterion("providerid >", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridGreaterThanOrEqualTo(String value) {
            addCriterion("providerid >=", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLessThan(String value) {
            addCriterion("providerid <", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLessThanOrEqualTo(String value) {
            addCriterion("providerid <=", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridLike(String value) {
            addCriterion("providerid like", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotLike(String value) {
            addCriterion("providerid not like", value, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridIn(List<String> values) {
            addCriterion("providerid in", values, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotIn(List<String> values) {
            addCriterion("providerid not in", values, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridBetween(String value1, String value2) {
            addCriterion("providerid between", value1, value2, "providerid");
            return (Criteria) this;
        }

        public Criteria andProvideridNotBetween(String value1, String value2) {
            addCriterion("providerid not between", value1, value2, "providerid");
            return (Criteria) this;
        }

        public Criteria andLogcontentIsNull() {
            addCriterion("logcontent is null");
            return (Criteria) this;
        }

        public Criteria andLogcontentIsNotNull() {
            addCriterion("logcontent is not null");
            return (Criteria) this;
        }

        public Criteria andLogcontentEqualTo(String value) {
            addCriterion("logcontent =", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentNotEqualTo(String value) {
            addCriterion("logcontent <>", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentGreaterThan(String value) {
            addCriterion("logcontent >", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentGreaterThanOrEqualTo(String value) {
            addCriterion("logcontent >=", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentLessThan(String value) {
            addCriterion("logcontent <", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentLessThanOrEqualTo(String value) {
            addCriterion("logcontent <=", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentLike(String value) {
            addCriterion("logcontent like", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentNotLike(String value) {
            addCriterion("logcontent not like", value, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentIn(List<String> values) {
            addCriterion("logcontent in", values, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentNotIn(List<String> values) {
            addCriterion("logcontent not in", values, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentBetween(String value1, String value2) {
            addCriterion("logcontent between", value1, value2, "logcontent");
            return (Criteria) this;
        }

        public Criteria andLogcontentNotBetween(String value1, String value2) {
            addCriterion("logcontent not between", value1, value2, "logcontent");
            return (Criteria) this;
        }

        public Criteria andApplicationnumIsNull() {
            addCriterion("applicationnum is null");
            return (Criteria) this;
        }

        public Criteria andApplicationnumIsNotNull() {
            addCriterion("applicationnum is not null");
            return (Criteria) this;
        }

        public Criteria andApplicationnumEqualTo(Integer value) {
            addCriterion("applicationnum =", value, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumNotEqualTo(Integer value) {
            addCriterion("applicationnum <>", value, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumGreaterThan(Integer value) {
            addCriterion("applicationnum >", value, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("applicationnum >=", value, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumLessThan(Integer value) {
            addCriterion("applicationnum <", value, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumLessThanOrEqualTo(Integer value) {
            addCriterion("applicationnum <=", value, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumIn(List<Integer> values) {
            addCriterion("applicationnum in", values, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumNotIn(List<Integer> values) {
            addCriterion("applicationnum not in", values, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumBetween(Integer value1, Integer value2) {
            addCriterion("applicationnum between", value1, value2, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnumNotBetween(Integer value1, Integer value2) {
            addCriterion("applicationnum not between", value1, value2, "applicationnum");
            return (Criteria) this;
        }

        public Criteria andApplicationnameIsNull() {
            addCriterion("applicationname is null");
            return (Criteria) this;
        }

        public Criteria andApplicationnameIsNotNull() {
            addCriterion("applicationname is not null");
            return (Criteria) this;
        }

        public Criteria andApplicationnameEqualTo(String value) {
            addCriterion("applicationname =", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameNotEqualTo(String value) {
            addCriterion("applicationname <>", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameGreaterThan(String value) {
            addCriterion("applicationname >", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameGreaterThanOrEqualTo(String value) {
            addCriterion("applicationname >=", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameLessThan(String value) {
            addCriterion("applicationname <", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameLessThanOrEqualTo(String value) {
            addCriterion("applicationname <=", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameLike(String value) {
            addCriterion("applicationname like", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameNotLike(String value) {
            addCriterion("applicationname not like", value, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameIn(List<String> values) {
            addCriterion("applicationname in", values, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameNotIn(List<String> values) {
            addCriterion("applicationname not in", values, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameBetween(String value1, String value2) {
            addCriterion("applicationname between", value1, value2, "applicationname");
            return (Criteria) this;
        }

        public Criteria andApplicationnameNotBetween(String value1, String value2) {
            addCriterion("applicationname not between", value1, value2, "applicationname");
            return (Criteria) this;
        }

        public Criteria andIsagreeIsNull() {
            addCriterion("isagree is null");
            return (Criteria) this;
        }

        public Criteria andIsagreeIsNotNull() {
            addCriterion("isagree is not null");
            return (Criteria) this;
        }

        public Criteria andIsagreeEqualTo(Integer value) {
            addCriterion("isagree =", value, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeNotEqualTo(Integer value) {
            addCriterion("isagree <>", value, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeGreaterThan(Integer value) {
            addCriterion("isagree >", value, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeGreaterThanOrEqualTo(Integer value) {
            addCriterion("isagree >=", value, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeLessThan(Integer value) {
            addCriterion("isagree <", value, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeLessThanOrEqualTo(Integer value) {
            addCriterion("isagree <=", value, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeIn(List<Integer> values) {
            addCriterion("isagree in", values, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeNotIn(List<Integer> values) {
            addCriterion("isagree not in", values, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeBetween(Integer value1, Integer value2) {
            addCriterion("isagree between", value1, value2, "isagree");
            return (Criteria) this;
        }

        public Criteria andIsagreeNotBetween(Integer value1, Integer value2) {
            addCriterion("isagree not between", value1, value2, "isagree");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}